package org.game.db.proxy.bean;

import org.cfg.DatingReserveCfg;
import org.cfg.cache.DatingReserveCfgCache;
import org.constant.DatingConstant;
import org.game.db.bean.ReserveDateRecord;

import com.sojoys.artifact.build.data.base.BasePojoProxy;

/**
 * @author : DengYing
 * @CreateDate : 2017年11月30日 下午2:44:09
 * @Description ：Please describe this document
 */
public class ReserveDateRecordProxy extends BasePojoProxy<ReserveDateRecordProxy, ReserveDateRecord>{

	public DatingReserveCfg getCfg() {
		return DatingReserveCfgCache.me().getById(t.getDatingCid());
	}

	public void clear(){
		t.setDatingCid(0);
		t.setTimeFrame(null);
		t.setState(DatingConstant.RESERVE_DATING_STATE_NO_DATING);
		t.update();
	}


}
